<?php

namespace App\Utils;

/**
 * 系统菜单配置
 */
class MenuUtil
{
    /**
     * 后台系统菜单配置
     */
    public static function adminMenu()
    {
        $menu = array(

            ["title"      => "信息管理",
             "icon"       => "admin/imgs/icon04.png",
             "url"        => route('admin.feedback'),
             "permission" => "purview.news",
             "menus"      => [
                 ["title" => "会员反馈",
                  "icon"  => "admin/imgs/leftico01.png",
                  "menus" => [
                      ["title"      => "咨询列表",
                       "url"        => route('admin.feedback', ['flag' => 0]),
                       "permission" => "permission.feedback"],
                      ["title"      => "回复列表",
                       "url"        => route('admin.feedback', ['flag' => 1]),
                       "permission" => "permission.feedback"],
                  ]
                 ],
                 ["title" => "页面信息",
                     "icon"  => "admin/imgs/leftico01.png",
                     "menus" => [
                         ["title"      => "碎片组成",
                             "url"     => route('admin.frag'),
                             "permission" => "permission.feedback"]
                     ]
                 ]
             ]],

            //=====================================================
            ["title"      => "系统设置",
             "icon"       => "admin/imgs/icon06.png",
             "url"        => route('admin.setting'),
             "permission" => "purview.setting",
             "menus"      => [
                 ["title" => "站点管理",
                  "icon"  => "admin/imgs/leftico01.png",
                  "menus" => [
                      ["title"      => "站点信息设置",
                       "url"        => route('admin.setting'),
                       "permission" => "permission.webinfo"],
                      ["title"      => "网站基本信息配置",
                          "url"        => route('admin.basic.setting'),
                          "permission" => "permission.111"]
                  ]
                 ],
                 ["title" => "安全管理",
                  "icon"  => "admin/imgs/leftico01.png",
                  "menus" => [
                      ["title"      => "管理员",
                       "url"        => route('admin.admins'),
                       "permission" => "permission.admins"],
                      ["title"      => "系统日志",
                       "url"        => route('admin.logs'),
                       "permission" => "permission.logs"]
                  ]
                 ],

             ]],
        );
        return $menu;
    }

}